package com.tencent.sr.iris.activity.interfaces.client.activity;

import com.tencent.sr.iris.activity.interfaces.request.acticity.ActivityGiftPopupRequest;
import com.tencent.sr.iris.activity.interfaces.request.acticity.AwardConfirmRequest;
import com.tencent.sr.iris.activity.interfaces.response.activity.ActivityGiftPopupResponse;
import com.tencent.sr.rmall.common.primitive.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "iris-activity-core-service", contextId = "ActivityAwardRecordClient",
        path = "/api/v1/iris/iris-activity-core-service/task/award")
public interface ActivityAwardRecordClient {

    @PostMapping("popup")
    HttpResult<ActivityGiftPopupResponse> popup(
            @Validated @RequestBody ActivityGiftPopupRequest request);

    @PostMapping("closePopup")
    HttpResult<Boolean> closePopup(
            @Validated @RequestBody ActivityGiftPopupRequest request);

    @PostMapping("awardConfirm")
    HttpResult<Boolean> awardConfirm(
            @Validated @RequestBody AwardConfirmRequest request);
}
